import Vue from 'vue'
import VueRouter from 'vue-router'
import loginPage from './login'
import home from './home'
import mine from './mine'
import dynamic from './dynamic'
import publish from './publish'
import activity from './activity'
import message from './message'
import myfeed from './myFeed'
import grade from './grade'
import notice from './notice'
import aboutUs from './aboutUs'
import feedback from './feedback'
import details from './details'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/home'
  },
  loginPage,
  home,
  mine,
  dynamic,
  publish,
  activity,
  message,
  myfeed,
  grade,
  notice,
  aboutUs,
  feedback,
  details
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
